package com.st.service.impl;

import com.st.dao.IAdminDao;
import com.st.entity.Admin;
import com.st.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminService implements IAdminService {
    @Autowired
    private IAdminDao adminDao;

    @Override
    public List<Admin> query(Admin admin) {
        return adminDao.query(admin);
    }

    @Override
    public Integer add(Admin admin) {
        return adminDao.add(admin);
    }

    @Override
    public Integer del(Integer id) {
        return adminDao.del(id);
    }

    @Override
    public Integer update(Admin admin) {
        return adminDao.update(admin);
    }
}
